package com.hkts.naturalgas.flow.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hkts.naturalgas.flow.entity.FlowInstanceinfo;
import com.hkts.naturalgas.utils.Result;

import java.util.List;

/**
 * <p>
 * 流程实例表 服务类
 * </p>
 *
 * @author zy
 * @since 2022-08-31
 */
public interface IFlowInstanceinfoService extends IService<FlowInstanceinfo> {

    /**
     * 分页查询
     *
     * @param bootStrapTable
     * @param flowInstanceinfo
     * @return
     */
    IPage<FlowInstanceinfo> selectPage(Page<FlowInstanceinfo> page, FlowInstanceinfo flowInstanceinfo);

    List<FlowInstanceinfo> selectList(FlowInstanceinfo flowInstanceinfo);

    Result<Object> initiateProcess(FlowInstanceinfo flowInstanceinfo);
    Result<Object> initiateProcessByOverTime(FlowInstanceinfo flowInstanceinfo,String assessmentStatus);
    Result<Object> cancelProcess(String id);
    Result<Object> getBackLog();
    Result<Object> getCopy();
}